//
//  WoDeHaoYou.m
//  SeeTheWorld
//
//  Created by dllo on 16/1/29.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "WoDeHaoYou.h"
#import "PCH.pch"
#import <UIImageView+WebCache.h>


@interface WoDeHaoYou ()

@property (nonatomic, retain)UIButton *buttonOfLeft;
@property (nonatomic, retain)UIImageView *imageViewOfLian;
@property (nonatomic, retain)UILabel *label;

@end

@implementation WoDeHaoYou

- (void)dealloc {
    [_label release];
    [_buttonOfLeft release];
    [_imageViewOfLian release];
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"我的好友";
    self.navigationController.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIFont systemFontOfSize:19], NSFontAttributeName, [UIColor whiteColor], NSForegroundColorAttributeName,nil];
    self.navigationController.navigationBar.dk_barTintColorPicker = DKColorWithColors([UIColor colorWithRed:43 / 256.f green:115 / 256.f blue:217 / 256.f alpha:1], [UIColor colorWithRed:39 / 256.f green:39 / 256.f blue:39 / 256.f alpha:1]);
    
    self.buttonOfLeft = [UIButton buttonWithType:UIButtonTypeCustom];
    self.buttonOfLeft.frame = CGRectMake(5, 10, 30, 30);
    [self.buttonOfLeft addTarget:self action:@selector(fanHui:) forControlEvents:UIControlEventTouchUpInside];
    [self.buttonOfLeft setBackgroundImage:[UIImage imageNamed:@"iconfont-fanhui-2"] forState:UIControlStateNormal];
    UIBarButtonItem *bar = [[UIBarButtonItem alloc] initWithCustomView:self.buttonOfLeft];
    self.navigationItem.leftBarButtonItem = bar;
    [bar release];
    
    self.imageViewOfLian = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"lian"]];
    self.imageViewOfLian.frame = CGRectMake(WIDTH / 3, HEIGHT / 4, WIDTH / 3, WIDTH / 3);
    [self.view addSubview:self.imageViewOfLian];
    [_imageViewOfLian release];
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(20, HEIGHT / 4 + WIDTH / 3 + 10, WIDTH - 40, 40)];
    [self.view addSubview:self.label];
    [_label release];
    self.label.text = @"没有相关内容";
    self.label.textAlignment = 1;
    self.label.font = [UIFont systemFontOfSize:20];
    self.label.dk_textColorPicker = DKColorWithRGB(0x343434, 0xffffff);
  
}

- (void)fanHui:(UIButton *)button {
    [self.navigationController popViewControllerAnimated:YES];
}









- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
